/*
 * @Author: your name
 * @Date: 2021-02-15 20:14:16
 * @LastEditTime: 2021-04-03 20:08:19
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \jianfa-admin\src\api\code.js
 */
import { get, post } from '../plugin/axioz';
export default {
  addCode(params) {// 添加二维码内容
    return post('/project_code/add', params)
  },
  addCodeImg(params) {// 添加项目图片
    return post('/project_code/add_pro_img', params, 'FormData')
  },
  //根据id删除工程
  delPro(params) {
    return post('/project_code/del_pro', params)
  },
  //获取pid
  getPid(params) {
    return get('/project_code/get_pid', params)
  },
  getCodeList(params) {// 获取二维码列表
    return post('/project_code/project_list', params)
  },
  editCode(params) {//编辑项目内容
    return post('/project_code/edit', params)
  }
}